/*
 * DA2CommFactory.java
 *
 * Created on 11 marzo 2007, 21.38
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.bloomingstars.bluepad.comm;

/**
 *
 * @author vega
 */
public class DA2CommFactory
{
    public static DA2Comm createDA2Comm(int type)
    {
        DA2Comm comm = null;
        
        switch (type)
        {
            case CommType.SERIAL:
                throw new IllegalArgumentException("Serial type not yet supported!");
                // break;
                
            case CommType.BLUETOOTH:
                comm = new BTDA2Comm();
                break;
        }
        
        return comm;
    }
    
    /** Creates a new instance of DA2CommFactory */
    private DA2CommFactory()
    {
    }
    
}
